﻿const Router = require("koa-router");

const bookService = require("../services/bookService");

const router = new Router();

router.get("/books", bookService.getBooks);
router.get("/books/:bookId", bookService.getBookById);
router.post("/books", bookService.addBook);
router.delete("/books/:bookId", bookService.deleteBook);
router.put("/books", bookService.updateBook);

module.exports = router;
